import request from '@/utils/request'
import Qs from 'qs'
// 设备订单列表
export function getList (params) {
  return request({
    params,
    url: '/api/order-share/admin/list'
  })
}

//结束订单
export function endOrder (data) {
  return request({
    method: 'post',
    url: '/api/order-share/admin/end',
    headers:{'content-type': 'application/x-www-form-urlencoded'},
    data:Qs.stringify(data)
  })
}

//订单退款
export function refundOrder (data) {
  return request({
    method: 'post',
    url: '/api/order-share/admin/refund',
    headers:{'content-type': 'application/x-www-form-urlencoded'},
    data:Qs.stringify(data)
  })
}